package com.becca.cake.model.users;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户短信表
 * @copyright  尊星(上海)信息科技有限公司
 * @author hejinguo
 * @date 2016年4月10日 上午4:09:36
 */
public class UserMessageModel implements Serializable {
    /**  */
    private static final long  serialVersionUID  = 8834210499707114157L;
    /**短信发送失败*/
    public static final String SEND_MESSAGE_FAIL = "短信发送失败!";

    private Integer            id;
    /**用户ID*/
    private Integer            userId;
    /**发送手机号*/
    private String             phoneNumber;
    /**短信内容*/
    private String             content;
    /**短信网关(0:个人  1:群发)*/
    private Byte               gateWay;
    /**发送类型(0:系统  1:人工)*/
    private Byte               sendType;
    /**短信类型(0:物流信息)*/
    private Byte               messageType;
    /**发送状态(0:未发送 1:发送成功 2:发送失败)*/
    private Byte               status;
    /**发送时间*/
    private Date               sendAt;
    /**发送人*/
    private String             sendName;

    /**创建时间*/
    private Date               createdDate;
    /**创建人*/
    private String             createdName;
    /**修改时间*/
    private Date               updatedDate;
    /**修改人*/
    private String             updatedName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Byte getGateWay() {
        return gateWay;
    }

    public void setGateWay(Byte gateWay) {
        this.gateWay = gateWay;
    }

    public Byte getSendType() {
        return sendType;
    }

    public void setSendType(Byte sendType) {
        this.sendType = sendType;
    }

    public Byte getMessageType() {
        return messageType;
    }

    public void setMessageType(Byte messageType) {
        this.messageType = messageType;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getSendAt() {
        return sendAt;
    }

    public void setSendAt(Date sendAt) {
        this.sendAt = sendAt;
    }

    public String getSendName() {
        return sendName;
    }

    public void setSendName(String sendName) {
        this.sendName = sendName;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedName() {
        return updatedName;
    }

    public void setUpdatedName(String updatedName) {
        this.updatedName = updatedName;
    }

    @Override
    public String toString() {
        return "UserMessageDO [id=" + id + ", userId=" + userId + ", phoneNumber=" + phoneNumber
               + ", content=" + content + ", gateWay=" + gateWay + ", sendType=" + sendType
               + ", messageType=" + messageType + ", status=" + status + ", sendAt=" + sendAt
               + ", sendName=" + sendName + ", createdDate=" + createdDate + ", createdName="
               + createdName + ", updatedDate=" + updatedDate + ", updatedName=" + updatedName
               + "]";
    }

}
